﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RegistarCliente.aspx.cs" Inherits="RegistarCliente" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <div id="colOne">
        <div id="logo">
            <h1><a href="Home.aspx">StaffSCHED</a></h1>
            <h2><a href="Home.aspx">Escalonamento de pessoal</a></h2>
        </div>
        <div class="box">
            <h3>Informações</h3>
            <ul class="bottom">
                <li class="first"><a href="Home.aspx">Home</a></li>
                <li><a href="Informacao.aspx">Informação</a></li>
                    <li><a href="Autores.aspx">Autores</a></li>
                    
            </ul>
        </div>
        <div class="box">
        <h3>Funcionalidades</h3>
            <ul class="bottom">
                <li class="first"><a href="SubmeterPedido.aspx">Submeter Pedido</a></li>
                <li><a href="RegistarCliente.aspx">Registar Cliente</a></li>
                <li><a href="ConsultarPlaneamentoGeral.aspx">Consultar Planeamento Geral</a></li>
            </ul>
        </div>
    </div>
    <div id="colTwo">
        <asp:Panel ID="PanelMsg" runat="server" />
        <h2>Registar Cliente</h2>
        <div class="box" align="center">
            <%--<h3>Página de registo</h3>--%>
            <%--<p class="bottom">--%>
                <table class="style2">
                    <tr>
                        <td class="style3">
                            Email</td>
                        <td width="180">
                            <asp:TextBox ID="tbEReg" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="tbEReg" ErrorMessage="Insira o email..." 
                                ForeColor="Red" EnableViewState="False"></asp:RequiredFieldValidator>
                            <br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="tbEReg" ErrorMessage="Insira um email válido" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                ForeColor="Red" EnableViewState="False"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Password</td>
                        <td width="180">
                            <asp:TextBox ID="tbPReg" runat="server" MaxLength="50" TextMode="Password" 
                                Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="tbPReg" ErrorMessage="Insira a Password..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Verifica Password</td>
                        <td width="180">
                            <asp:TextBox ID="tbVP" runat="server" MaxLength="50" TextMode="Password" 
                                Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="tbVP" 
                                ErrorMessage="Insira a password para confirmação..." ForeColor="Red"></asp:RequiredFieldValidator>
                            <br />
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="tbPReg" ControlToValidate="tbVP" 
                                ErrorMessage="As password devem coincidir..." ForeColor="Red"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Primeiro Nome</td>
                        <td width="180">
                            <asp:TextBox ID="tbPN" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                ControlToValidate="tbPN" ErrorMessage="Insira o primeiro nome..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Último Nome</td>
                        <td width="180">
                            <asp:TextBox ID="tbUN" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="tbUN" ErrorMessage="Insira o último nome..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Telefone</td>
                        <td width="180">
                            <asp:TextBox ID="tbT" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                ControlToValidate="tbT" ErrorMessage="Insira o telefone..." 
                                ForeColor="Red" EnableViewState="False"></asp:RequiredFieldValidator><br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="tbT" ErrorMessage="Insira um telefone válido" 
                                ValidationExpression="([+][0-9]{3})*[0-9]{9}" 
                                ForeColor="Red" EnableViewState="False"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Endereço</td>
                        <td width="180">
                            <asp:TextBox ID="tbEnd" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ControlToValidate="tbEnd" ErrorMessage="Insira o endereço..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Cidade</td>
                        <td width="180">
                            <asp:TextBox ID="tbC" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                ControlToValidate="tbC" ErrorMessage="Insira a cidade..." ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Distrito</td>
                        <td width="180">
                            <asp:TextBox ID="tbD" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="tbD" ErrorMessage="Insira o distrito..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Código Postal</td>
                        <td width="180">
                            <asp:TextBox ID="tbCP" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                ControlToValidate="tbCP" ErrorMessage="Insira o código postal..." 
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td width="180">
                            <asp:Button ID="Registar" runat="server" onclick="Registar_Click" 
                                Text="Registar" style="height: 26px" />
                            <input id="Reset1" type="reset" value="Limpar" /></td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            <%--</p>--%>
        </div>
    </div>
</asp:Content>


